﻿@{
    ViewBag.Title = "编辑Relo";
    var relo = ViewBag.relo as HynuIOTA.Entity.Relo;
}
@section scripts
{
    <script>
        function doBegin() {
            window.top.$.msgBoxObj.showMsgInfo('数据提交中...');
        }

        function doFail() {
            window.top.$.msgBoxObj.showMsgErr('网络异常!');
        }

        function doComplete(xhrObj) {
            $.processJsonMsg(xhrObj.responseText,
                function(response) {
                    if (response.Statu === 1) {
                        window.top.topHelper.closeComWindow();
                        window.top.topHelper.updateDataGrid();
                    }
                });
        }
    </script>
}
<div style="width: 100%">
    @using (Ajax.BeginForm("PutRelo", new { area = "Admin", controller = "Permission" }, new AjaxOptions()
    {
        HttpMethod = "Post",
        OnBegin = "doBegin",
        OnFailure = "doFail",
        OnComplete = "doComplete"
    }, new { id = "action-form", name = "action-form" }))
    {
        <div class="div-form" style="margin-top: 40px">
            <input type="hidden" name="Id" value="@relo.Id"/>
            <div><input id="Name" name="Name" value="@relo.Name" class="easyui-textbox" data-options="label:'权限组名称：',labelPosition:'left',labelWidth:120," style="width: 90%; height: 35px;"></div>
            <div><input id="Description" value="@relo.Description" name="Description" class="easyui-textbox" data-options="label:'权限组描述：',labelPosition:'left',labelWidth:120," style="width: 90%; height: 35px;"></div>
            <div><input type="submit" class="easyui-linkbutton button-blue l-btn l-btn-small" style="width: 90%; height: 40px; margin-left: 10px"/></div>
        </div>
    }
</div>